<?php
require_once '../registro_ds/conexao_ciec.php';
require_once '../registro_ds/funcoes.php';
$esc_id = $_GET['esc_id'];
$query = mysql_query("select id,nome,data_atual from reg_d where esc_id={$esc_id} order by id asc") or die("Erro ao listar registro de diretores - ".mysql_error());

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>.:Hist&oacute;rico de Secret&aacute;rio:.</title>
<link rel="stylesheet" type="text/css" href="../css/public.css">
</head>

<body>
<table width="500" border="1" align="center">
  <tr>
    <td><div align="center"><strong>.:Hist&oacute;rico de Diretores:.</strong></div></td>
  </tr>
</table>
<table width="500" border="1" align="center">
  <tr>
    <td width="63"><div align="center"><strong>Registro</strong></div></td>
    <td width="290"><div align="center"><strong>Nome</strong></div></td>
    <td width="125"><div align="center"><strong>Data Atualiza&ccedil;&atilde;o</strong></div></td>
  </tr>
</table>
<?php
$cont = 1;
while($dados = mysql_fetch_array($query))
{
?>
<table width="500" border="0" align="center">
  <tr>
    <td><table width="500" border="1" align="center">
      <tr>
        <td width="63" bgcolor="#FFFFFF"><div align="center"><strong><a href="exibe_diretor.php?cont=<?php echo $cont;?>&registro=<?php echo $dados['id'];?>"><?php echo $cont;?></a></strong></div></td>
        <td width="290" bgcolor="#FFFFFF"><div align="center"><strong><?php echo $dados['nome'];?></strong></div></td>
        <td width="125" bgcolor="#FFFFFF"><div align="center"><strong><?php echo dataBR($dados['data_atual']);?></strong></div></td>
      </tr>
    </table></td>
  </tr>
</table>
<?php
$cont++; 
}
?>
<p>&nbsp;</p>
</body>
</html>
